
package com.hc.dao.impl;

import org.springframework.stereotype.Repository;

import com.hc.dao.IAdminDao;
import com.hc.domain.Admin;
@Repository
public class AdminDaoImpl extends BaseDaoImpl<Admin> implements IAdminDao{

	@Override
	public Admin getByAccount(String account) {
		return super.get("FROM Admin a WHERE a.account=?", new Object[]{account});
	}

	@Override
	public void saveOrUpdateData(Admin admin) {
		super.saveOrUpdate(admin);
	}

}

